package org.csu.storemanage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.csu.storemanage.pojo.User;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User>
{
    @Insert("INSERT INTO userinfo ( user_id, username, password, is_admin, phone) VALUES ( ?, ?, ?, ? ,?)")
    int insertUser(@Param("user") User user);
}

